﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="addCampaign.aspx.cs" Inherits="EmailMarketingCampaign.addCampaign" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script>  
  function   Refresh()  
  {  
      if   (document.getElementById("Yes").checked)  
      {
          document.getElementById("KIT_Times").style.display = "";  
      }  
      else  
      {
          document.getElementById("KIT_Times").style.display = "none";  
      }  
  }  
  </script>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td align="left">
                <a href="mailList.aspx"><input id="back" type="button" value="Back to mail list" /></a>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                    <table width="100%" cellpadding="15" cellspacing="0" border="0" borderColor="#B5B5B5" style="border-collapse: collapse;">
    <tr>
        <td style="width:40%">
            Campaign Name</td>
        <td>
            <asp:TextBox ID="txtCampaignName" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>Is this Keep in touch campaign?
</td>
        <td>
            <asp:RadioButton ID="Yes" runat="server" Text="Yes" GroupName="isKIT" onclick="Refresh()"/> <asp:RadioButton ID="No" runat="server" Text="No" GroupName="isKIT" onclick="Refresh()"/>
        </td>
    </tr>
    <tr id="KIT_Times" style="display:none">
        <td>How many times do you want to send?
</td>
        <td>
            <asp:DropDownList ID="ddlKITTimes" runat="server">
                <asp:ListItem Value="1"></asp:ListItem>
                <asp:ListItem Value="2"></asp:ListItem>
                <asp:ListItem Value="3"></asp:ListItem>
                <asp:ListItem Value="4"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>Choose which way: 
</td>
        <td>
            <asp:RadioButton GroupName="way" ID="way1" runat="server" Text="Using Template Create Campaign
"/> 
            <br />
            <asp:RadioButton GroupName="way" ID="way2" runat="server" Text="Use previous campaign
"/> 
            <br />
            <asp:RadioButton GroupName="way" ID="way3" runat="server" Text="Customized"/> </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
            </td>            
        </tr>
        <tr>
            <td style="text-align:right">
                <asp:Button ID="save" runat="server" Text="Save" />
               <a href="editCampaign.aspx"><input id="next" type="button" value="next" /></a>
            </td>
        </tr>
    </table>
</asp:Content>
